<?php use_stylesheets_for_form($form) ?>
<?php use_javascripts_for_form($form) ?>

<form action="<?php echo url_for("@comment_create?article_id=".$articleId) ?>" method="post">
  <?php echo $form->renderGlobalErrors() ?>
  <?php echo $form['comment']->renderError() ?>
  <?php isset($form['emailorqq']) and print $form['emailorqq']->renderError() ?>
  <?php isset($form['name']) and print $form['name']->renderError() ?>
  <table width="630" border="0" cellpadding="0" cellspacing="0">
    <tr>
      <td colspan="6" class="pl_input">
      <?php echo $form['comment']->render(array('class' => 'comment-textarea', 'cols' => 68, 'rows' => 5)) ?>
      </td>
      </tr>
      <tr bgcolor="#f3f3f5">
	  <?php if (isset($form['emailorqq']) && isset($form['name'])): ?>
		  <td width="5" class="pl_bton_input"></td>
		  <td width="135" valign="middle" class="pl_bton_input">
		  <?php echo $form['name']->renderLabel('姓名：') ?>
		  <?php echo $form['name']->render(array('class' => 'name-input','size'=>'10')) ?>		  
		  </td>
		  <td width="216" valign="middle" class="pl_bton_input">
		  <?php echo $form['emailorqq']->renderLabel('QQ或E-mail：') ?>
		  <?php echo $form['emailorqq']->render(array('class' => 'email-input','size'=>'15')) ?>

		  </td>
	  <?php endif ?>
	  <td width="115" valign="middle" height="30" class="pl_bton_input">
	  <?php echo $form['captcha']->renderLabel('验证码：') ?>
		<?php echo $form['captcha']->render(array('class' => 'captcha','size' => '4')) ?>
</td>
		  <td width="98"><span class="pl_bton_input">
		  <?php echo $form->renderHiddenFields() ?><input type="image" src="/../images/tj_btn.gif" name="button" value="提交" /></span></td>
	  </tr>
	</table>
</form>
